package ${packageName};

import user.zc.core.base.DTO;
import ${import.entity.packageName}.${import.entity.className};
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import javax.validation.constraints.NotNull;


@ApiModel(<#if tableComment?trim?length gt 2>"添加${tableComment}"<#else>"添加${tableName}"</#if>)
@Data
public class ${className} extends DTO<${import.entity.className}> {

<#list fields as field>
    <#if field.isDefault = false>
    @ApiModelProperty("${field.comment}")
    @NotNull(message="${field.comment}不能为空")
    private ${field.type} ${field.name} ;
    </#if>
</#list>
}